.class public Lcom/estrongs/android/pop/app/messagebox/WebActivity;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "WebActivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "SetJavaScriptEnabled"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;,
        Lcom/estrongs/android/pop/app/messagebox/WebActivity$c;
    }
.end annotation


# instance fields
.field private d:Z

.field private e:Z

.field private f:J

.field private g:Lcom/estrongs/android/pop/esclasses/ESWebView;

.field private h:Z

.field private i:Landroid/webkit/ValueCallback;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/webkit/ValueCallback<",
            "Landroid/net/Uri;",
            ">;"
        }
    .end annotation
.end field

.field private j:Ljava/lang/String;

.field private k:Landroid/widget/ProgressBar;

.field private l:Ljava/lang/String;

.field private m:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->d:Z

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->e:Z

    return-void
.end method

.method private A()Landroid/content/Intent;
    .locals 4

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.media.action.IMAGE_CAPTURE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 2
    sget-object v1, Landroid/os/Environment;->DIRECTORY_DCIM:Ljava/lang/String;

    invoke-static {v1}, Landroid/os/Environment;->getExternalStoragePublicDirectory(Ljava/lang/String;)Ljava/io/File;

    move-result-object v1

    .line 3
    new-instance v2, Ljava/io/File;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v1, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "messagebox-photos"

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-virtual {v2}, Ljava/io/File;->mkdirs()Z

    .line 5
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 6
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, ".jpg"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->j:Ljava/lang/String;

    .line 7
    new-instance v1, Ljava/io/File;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->j:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v1}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v1

    const-string v2, "output"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    return-object v0
.end method

.method private B()Landroid/content/Intent;
    .locals 4

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.GET_CONTENT"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.category.OPENABLE"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "image/*"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const/4 v1, 0x1

    new-array v1, v1, [Landroid/content/Intent;

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->A()Landroid/content/Intent;

    move-result-object v2

    const/4 v3, 0x0

    aput-object v2, v1, v3

    invoke-direct {p0, v1}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->a([Landroid/content/Intent;)Landroid/content/Intent;

    move-result-object v1

    const-string v2, "android.intent.extra.INTENT"

    .line 5
    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    return-object v1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/messagebox/WebActivity;J)J
    .locals 0

    .line 4
    iput-wide p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->f:J

    return-wide p1
.end method

.method private varargs a([Landroid/content/Intent;)Landroid/content/Intent;
    .locals 2

    .line 5
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.CHOOSER"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.extra.INITIAL_INTENTS"

    .line 6
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Landroid/os/Parcelable;)Landroid/content/Intent;

    const p1, 0x7f110667

    .line 7
    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    const-string v1, "android.intent.extra.TITLE"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    return-object v0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/messagebox/WebActivity;Landroid/webkit/ValueCallback;)Landroid/webkit/ValueCallback;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i:Landroid/webkit/ValueCallback;

    return-object p1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->h:Z

    return p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/messagebox/WebActivity;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->d:Z

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->d:Z

    return p0
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/messagebox/WebActivity;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->e:Z

    return p1
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/webkit/ValueCallback;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i:Landroid/webkit/ValueCallback;

    return-object p0
.end method

.method static synthetic d(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/content/Intent;
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->B()Landroid/content/Intent;

    move-result-object p0

    return-object p0
.end method

.method static synthetic e(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Lcom/estrongs/android/pop/esclasses/ESWebView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    return-object p0
.end method

.method static synthetic f(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->e:Z

    return p0
.end method

.method static synthetic g(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->l:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic h(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->m:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic i(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)Landroid/widget/ProgressBar;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->k:Landroid/widget/ProgressBar;

    return-object p0
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 4

    const/4 v0, -0x1

    const/4 v1, 0x0

    if-eqz p3, :cond_1

    if-eq p2, v0, :cond_0

    goto :goto_0

    .line 1
    :cond_0
    invoke-virtual {p3}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v2

    goto :goto_1

    :cond_1
    :goto_0
    move-object v2, v1

    :goto_1
    const/4 v3, 0x1

    if-ne p1, v3, :cond_3

    if-nez v2, :cond_2

    if-ne p2, v0, :cond_2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->j:Ljava/lang/String;

    if-eqz v0, :cond_2

    .line 3
    new-instance v0, Ljava/io/File;

    iget-object v3, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->j:Ljava/lang/String;

    invoke-direct {v0, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 5
    invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v2

    .line 6
    new-instance v0, Landroid/content/Intent;

    const-string v3, "android.intent.action.MEDIA_SCANNER_SCAN_FILE"

    invoke-direct {v0, v3, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v0}, Landroid/app/Activity;->sendBroadcast(Landroid/content/Intent;)V

    .line 7
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i:Landroid/webkit/ValueCallback;

    if-eqz v0, :cond_3

    .line 8
    invoke-interface {v0, v2}, Landroid/webkit/ValueCallback;->onReceiveValue(Ljava/lang/Object;)V

    .line 9
    iput-object v1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->i:Landroid/webkit/ValueCallback;

    .line 10
    :cond_3
    invoke-super {p0, p1, p2, p3}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onActivityResult(IILandroid/content/Intent;)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .line 1
    invoke-static {}, Landroid/os/SystemClock;->currentThreadTimeMillis()J

    .line 2
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const-string v0, "url"

    .line 4
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->l:Ljava/lang/String;

    .line 5
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    :cond_0
    const/4 v0, 0x0

    const-string v1, "back_home"

    .line 7
    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p1

    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->h:Z

    const p1, 0x7f0c026f

    .line 8
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->setContentView(I)V

    .line 9
    invoke-static {p0}, Lcom/estrongs/android/pop/utils/o;->b(Landroid/app/Activity;)V

    const p1, 0x7f090be7

    .line 10
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->m:Landroid/widget/TextView;

    const p1, 0x7f090d8f

    .line 11
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/esclasses/ESWebView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const p1, 0x7f090928

    .line 12
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ProgressBar;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->k:Landroid/widget/ProgressBar;

    const p1, 0x7f090be5

    .line 13
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    new-instance v1, Lcom/estrongs/android/pop/app/messagebox/WebActivity$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/messagebox/WebActivity$a;-><init>(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p1, 0x7f090be8

    .line 14
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    new-instance v1, Lcom/estrongs/android/pop/app/messagebox/WebActivity$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/messagebox/WebActivity$b;-><init>(Lcom/estrongs/android/pop/app/messagebox/WebActivity;)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 15
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const-string v1, "accessibility"

    invoke-virtual {p1, v1}, Landroid/webkit/WebView;->removeJavascriptInterface(Ljava/lang/String;)V

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const-string v1, "accessibilityTraversal"

    invoke-virtual {p1, v1}, Landroid/webkit/WebView;->removeJavascriptInterface(Ljava/lang/String;)V

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const-string v1, "searchBoxJavaBridge_"

    invoke-virtual {p1, v1}, Landroid/webkit/WebView;->removeJavascriptInterface(Ljava/lang/String;)V

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    new-instance v1, Lcom/estrongs/android/pop/app/messagebox/MessageBoxJavaScriptInterface;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/messagebox/MessageBoxJavaScriptInterface;-><init>(Landroid/app/Activity;)V

    const-string v2, "messagebox"

    invoke-virtual {p1, v1, v2}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 19
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const/4 v1, 0x1

    invoke-virtual {p1, v1}, Landroid/webkit/WebView;->setVerticalScrollbarOverlay(Z)V

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    new-instance v2, Lcom/estrongs/android/pop/app/messagebox/WebActivity$c;

    const/4 v3, 0x0

    invoke-direct {v2, p0, v3}, Lcom/estrongs/android/pop/app/messagebox/WebActivity$c;-><init>(Lcom/estrongs/android/pop/app/messagebox/WebActivity;Lcom/estrongs/android/pop/app/messagebox/WebActivity$a;)V

    invoke-virtual {p1, v2}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    new-instance v2, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;

    invoke-direct {v2, p0, v3}, Lcom/estrongs/android/pop/app/messagebox/WebActivity$MessageBoxWebChromeClient;-><init>(Lcom/estrongs/android/pop/app/messagebox/WebActivity;Lcom/estrongs/android/pop/app/messagebox/WebActivity$a;)V

    invoke-virtual {p1, v2}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 22
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {p1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object p1

    .line 23
    invoke-virtual {p1, v1}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 24
    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setSaveFormData(Z)V

    .line 25
    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setSavePassword(Z)V

    .line 26
    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V

    const/4 v0, 0x2

    .line 27
    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setCacheMode(I)V

    .line 28
    invoke-virtual {p1, v1}, Landroid/webkit/WebSettings;->setUseWideViewPort(Z)V

    .line 29
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {p1}, Landroid/webkit/WebView;->clearView()V

    .line 30
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {p1, v1}, Landroid/webkit/WebView;->clearCache(Z)V

    .line 31
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->l:Ljava/lang/String;

    const-string v0, "wenjuan.baidu.com"

    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_2

    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->l:Ljava/lang/String;

    const-string v0, "dosurvey.baidu.com"

    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_1

    goto :goto_0

    .line 32
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->l:Ljava/lang/String;

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    goto :goto_1

    .line 33
    :cond_2
    :goto_0
    new-instance p1, Ljava/lang/StringBuilder;

    const-string v0, "http://www.baidu.com/jump.html"

    invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, "&_token="

    .line 34
    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 35
    invoke-static {p0}, Les/og;->b(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "&"

    .line 36
    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 37
    invoke-static {p0}, Lcom/estrongs/android/util/b0;->b(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 38
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 39
    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v1, "Referer"

    invoke-interface {v0, v1, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 40
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->l:Ljava/lang/String;

    invoke-virtual {p1, v1, v0}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;Ljava/util/Map;)V

    :goto_1
    return-void
.end method

.method protected onDestroy()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Landroid/webkit/WebView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->removeAllViews()V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->destroy()V

    .line 5
    :cond_0
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    const/4 v0, 0x4

    if-ne p1, v0, :cond_1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/webkit/WebView;->canGoBack()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->g:Lcom/estrongs/android/pop/esclasses/ESWebView;

    invoke-virtual {p1}, Landroid/webkit/WebView;->goBack()V

    return v1

    .line 3
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/messagebox/WebActivity;->h:Z

    if-eqz v0, :cond_1

    .line 4
    new-instance p1, Landroid/content/Intent;

    const-class p2, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-direct {p1, p0, p2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 5
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return v1

    .line 6
    :cond_1
    invoke-super {p0, p1, p2}, Landroidx/appcompat/app/AppCompatActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method protected onPause()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onPause()V

    return-void
.end method
